//
//  User.h
//  CheTaiXian
//
//  Created by Jingjing Huang on 9/06/14.
//  Copyright (c) 2014 Jingjing Huang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BaseUser : NSObject

@property(strong, nonatomic) NSString *access_token;
@property (nonatomic,assign)NSInteger user_id;
@property (nonatomic,assign)BOOL vibrate;
@property (nonatomic,assign)BOOL voice_alert;
@property (nonatomic,copy)NSString *device_token;
@property (nonatomic,strong)NSArray *account_list;
@property (nonatomic,assign)BOOL pay_password_set;

@property (nonatomic,assign)NSInteger message_sort_id;

@property (nonatomic,strong)NSDictionary *last_message_id_dic;

@property (nonatomic,assign)NSInteger chat_target_user_id;
@property(strong,nonatomic) NSMutableDictionary *dictVersion;

// 用于后登录的app，需要用到
@property (nonatomic, assign)BOOL loginViewControllerPresented;
// 用于判断首次启动app
@property (nonatomic, assign)BOOL everLaunched;


// 以下是用于常用ext字断，存于baseuser里面
@property (nonatomic, assign) int user_type_id;
@property (nonatomic, strong) NSString *email;
@property (nonatomic, strong) NSString *mobile;
@property (nonatomic, strong) NSString *user_name;
@property (nonatomic, strong) NSString *head_image_path;
@property (nonatomic, strong) NSString *location;
@property (nonatomic, strong) NSString *latitude;
@property (nonatomic, strong) NSString *longitude;
@property (nonatomic, strong) NSString *date_logon;
@property (nonatomic, strong) NSString *date_created;


//创建单例文件
+(BaseUser *)sharedUser;
//保存信息到本地plist
+(void)saveBaseUser:(NSDictionary *)dict;

@end
